var Module_Rop = function(options){
    this.module = options.module;
    this.controller = options.controller;
    this.urlPath = baseUrl + '/' + this.module + '/' + this.controller;
    this.initialize();
    this.sendding = false;
    this.obGridView = $("#jqxgrid");
}

Module_Rop.prototype.initialize = function(){
    var self = this;
    $("#refresh").unbind('click').click(function(){
        self.obGridView.jqxGrid('updatebounddata','filter');
    });
    $("#printrecord").unbind('click').click(function(){self.printrecord()});
}
Module_Rop.prototype.initializeJqxGrid = function(){
    
}

$.extend(Module_Rop.prototype, {
    _eButton: function(){
        var self = this;
        $("#btnsave,#btnsave_next").unbind('click').click(function(){
            if($('#frmUpdate')[0].checkValidity()){
                self.save($(this).attr('action'));
                return false;
            }
        });
        $("#clsaveassign").unbind('click').click(function(){
            if($('#frmUpdate')[0].checkValidity()){
                self.saveassign();
                return false;
            }
        });
    },
    _clearForm: function(ID){
        $('form#'+ID).find('input[type=text], textarea').val('');
    },
    _eForm: function(){
        $('form#frmUpdate [date="isdate"]').datepicker({
            changeMonth: true,
            gotoCurrent: true,
            // minDate:'today',
            changeYear: true
        });
    }
} );